Integrand size = 24, antiderivative size = 92 \[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\frac {2^{\frac {1}{2}+m} \operatorname {AppellF1}\left (\frac {1}{2}+n,\frac {1}{2}-m,1,\frac {3}{2}+n,\frac {1}{2} (1-\sec (e+f x)),1-\sec (e+f x)\right ) (c-c \sec (e+f x))^n \tan (e+f x)}{f (1+2 n) \sqrt {1+\sec (e+f x)}} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3997, 141} \[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\frac {2^{m+\frac {1}{2}} \tan (e+f x) (c-c \sec (e+f x))^n \operatorname {AppellF1}\left (n+\frac {1}{2},\frac {1}{2}-m,1,n+\frac {3}{2},\frac {1}{2} (1-\sec (e+f x)),1-\sec (e+f x)\right )}{f (2 n+1) \sqrt {\sec (e+f x)+1}} \]
[In]
[Out]
Rule 141
Rule 3997
Rubi steps \begin{align*} \text {integral}& = -\frac {(c \tan (e+f x)) \text {Subst}\left (\int \frac {(1+x)^{-\frac {1}{2}+m} (c-c x)^{-\frac {1}{2}+n}}{x} \, dx,x,\sec (e+f x)\right )}{f \sqrt {1+\sec (e+f x)} \sqrt {c-c \sec (e+f x)}} \\ & = \frac {2^{\frac {1}{2}+m} \operatorname {AppellF1}\left (\frac {1}{2}+n,\frac {1}{2}-m,1,\frac {3}{2}+n,\frac {1}{2} (1-\sec (e+f x)),1-\sec (e+f x)\right ) (c-c \sec (e+f x))^n \tan (e+f x)}{f (1+2 n) \sqrt {1+\sec (e+f x)}} \\ \end{align*}
\[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx \]
[In]
[Out]
\[\int \left (\sec \left (f x +e \right )+1\right )^{m} \left (c -c \sec \left (f x +e \right )\right )^{n}d x\]
[In]
[Out]
\[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\int { {\left (-c \sec \left (f x + e\right ) + c\right )}^{n} {\left (\sec \left (f x + e\right ) + 1\right )}^{m} \,d x } \]
[In]
[Out]
\[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\int \left (- c \left (\sec {\left (e + f x \right )} - 1\right )\right )^{n} \left (\sec {\left (e + f x \right )} + 1\right )^{m}\, dx \]
[In]
[Out]
\[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\int { {\left (-c \sec \left (f x + e\right ) + c\right )}^{n} {\left (\sec \left (f x + e\right ) + 1\right )}^{m} \,d x } \]
[In]
[Out]
\[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\int { {\left (-c \sec \left (f x + e\right ) + c\right )}^{n} {\left (\sec \left (f x + e\right ) + 1\right )}^{m} \,d x } \]
[In]
[Out]
Timed out. \[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx=\int {\left (\frac {1}{\cos \left (e+f\,x\right )}+1\right )}^m\,{\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )}^n \,d x \]
[In]
[Out]